/*
* Copyrigth 2008 Company All rigths reserved
* File Name: ILaboratory.cs
* Created By:    Wenbin.Xu
* Created Date:   2013/7/8 16:29:47
* Description:    Laboratory模块的接口
* Change History: 
* 
* */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TrainingsApp.Model;
using TrainingsApp.DAL;
using System.Web.UI.WebControls;

namespace TrainingsApp.Logic {
    public class TS_School_Logic {
        public static TS_School_Collecion TS_School_ListByPaging(int pageSize, int pageIndex) {
            return TS_School_DAL.TS_School_ListByPaging(pageSize, pageIndex);
        }

        public static TS_School_Collecion TS_School_ListToGridByPaging(int pageSize, int pageIndex, System.Collections.Specialized.StringDictionary querys) {
            string where = WhereHelper.ConvertToAndLikeSQL(querys);
            return TS_School_DAL.TS_School_ListToGridByPaging(pageSize, pageIndex, where);
        }

        public static List<TS_School_Entity> TS_School_ListToSearch(string searchText) {
            return TS_School_DAL.TS_School_ListBySearch(searchText);
        }

        public static List<TS_School_Entity> TS_School_ListByWhere(int province, int area, int region) {
            return TS_School_DAL.TS_School_ListByWhere(province, area, region);
        }

        public static TS_School_Entity TS_School_View(System.Int64 Idx) {
            return TS_School_DAL.TS_School_View(Idx);
        }

        public static TS_School_Entity TS_School_Add(TS_School_Entity entity) {
            return TS_School_DAL.TS_School_Add(entity);
        }

        public static void TS_School_Update(TS_School_Entity entity) {
            TS_School_DAL.TS_School_Update(entity);
        }

        public static void TS_School_Delete(System.Int64 Idx) {
            TS_School_DAL.TS_School_Delete(Idx);
        }


    }
}
